﻿<UserControl x:Class="Roller.Animation.RenderedDie"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             FontFamily="{StaticResource PhoneFontFamilyNormal}"
             FontSize="{StaticResource PhoneFontSizeNormal}"
             Foreground="{StaticResource PhoneForegroundBrush}"
             d:DesignHeight="80"
             d:DesignWidth="80">

 <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
  <Grid Width="80" Height="80" Background="White" Margin="2">
   <Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    <RowDefinition Height="*" />
   </Grid.RowDefinitions>
   <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right">
    <TextBlock FontSize="12" Text="D" Foreground="Black" />
    <TextBlock FontSize="12" Text="{Binding Die.MaximumValue}" Foreground="Black" Padding="0,0,10,0" />
   </StackPanel>
   <TextBlock FontSize="32" x:Name="RollValueDisplay" Text="{Binding Die.LastRoll}" Grid.Row="1" Foreground="Black" Width="80" TextAlignment="Center" FontWeight="Bold"  />
  </Grid>
 </Grid>
</UserControl>
